@echo off

if "%VSINSTALLDIR%" == "" goto vsprompt

echo 1.----------Set environment variables-----------
call BVTscripts\SetEnv.bat
echo.
echo 2.----------Register RPF dlls----------
call BVTscripts\RegisterRPF.bat
echo.
echo 3.----------Get latest source code----------
call BVTscripts\GetLatestSrc.bat
echo.
echo 4.----------Modify assembly info to get code coverage----------
call BVTscripts\ModifyAssemblyInfo.vbs
echo.
echo 5.----------Remove google fonts from TheThemeMachine to pick up site speed----------
call BVTscripts\RemoveGoogleFonts.vbs
echo.
echo 6.----------Build orchard source code----------
call BVTscripts\BuildProduct.bat
echo.
echo 7.----------Instrument dlls to get code coverage----------
call BVTscripts\GetCodeCoverage.bat
echo.
echo 8.---------Stop java if it is open---------
call BVTscripts\StopJava.bat
echo.
echo 9.---------Build test project source code----------
call BVTscripts\BuildTestProject.bat
echo.
goto eof

:vsprompt
@echo No VSINSTALLDIR environment variable is detected
@echo Please run this batch command from an elevated environment in Visual Studio Command Prompt
@echo.

:eof

